<!DOCTYPE HTML>
<html lang="zh">
<head>
	<meta charset="utf-8" />
	<script src="../js/JW.js" crossorigin="anonymous"></script>
	<script src="../js/infinity.js" crossorigin="anonymous"></script>
</head>
<body>
<div id='wuji0'></div><input type='button' onclick='console.log(inf0.get())' value='查看第一个' />
<p>
<div id='wuji1'></div><input type='button' onclick='console.log(inf1.get())' value='查看第二个' />
<p>
<div id='wuji2'></div><input type='button' onclick='console.log(inf2.get())' value='查看第三个' />
<script>
	var wuji1 = new Array();
	wuji1[1] = [0, '1级1'];
	wuji1[2] = [1, '2级2'];
	wuji1[3] = [2, '3级'];
	wuji1[4] = [3, '4级'];
	wuji1[5] = [0, '1级5'];
	wuji1[6] = [1, '2级6'];
	wuji1[7] = [5, '2级7'];

	var wuji2 = new Array();
	wuji2[1] = [0, '1级1'];
	wuji2[2] = [1, '2级2'];
	wuji2[3] = [2, '3级3'];
	wuji2[4] = [3, '4级4'];
	wuji2[5] = [3, '4级5'];
	wuji2[6] = [3, '4级6'];
	wuji2[7] = [3, '4级7'];
	wuji2[8] = [6, '5级8'];
	wuji2[9] = [2, '3级9'];
	wuji2[10] = [2, '3级10'];

	window.onload = function() {
		inf0 = new infinity();
		inf0.init('wuji0', JW, 2);

		inf1 = new infinity();
		inf1.init('wuji1', wuji1, 0);

		inf2 = new infinity();
		inf2.init('wuji2', wuji2, 3);
	}
</script>
</body>
</html>